home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / picture ƒ / line.h < prev    next >
Text File  |  1991-02-16  |  723b  |  35 lines

  1. /*
  2. *    FILE:        line.h
  3. *    AUTHOR:        R. Gonzalez
  4. *    CREATED:    October 6, 1990
  5. *
  6. *    Defines 3D line segment for picture application.
  7. */
  8.  
  9. # ifndef    line_h
  10. # define    line_h
  11.  
  12. # include    "segment.h"
  13. # include    "trans.h"
  14. # include    "camera.h"
  15. # include    "project.h"
  16. # include    "coord.h"
  17.  
  18. /******************************************************************
  19. *   3D line
  20. ******************************************************************/
  21. struct    Line:Segment
  22. {
  23.     Coord3            *c1;
  24.     Coord3            *c2;
  25.     color            line_color;
  26.     
  27.     boolean            init(void);
  28.     virtual void    set_coord(double,double,double,double,double,double);
  29.     void            set_color(color);
  30.     void            draw(Camera*,Projector*,Transformation*);
  31.     void            move(Transformation*);
  32.     boolean            destroy(void);
  33. };
  34.  
  35. # endif